/*
 * Servo.h
 *
 * Created: 3/21/2013 6:51:01 AM
 *  Author: Parag
 */ 


#ifndef SERVO_H_
#define SERVO_H_

#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>

enum Angles{
	// refer to http://en.wikipedia.org/wiki/Cardinal_direction
	//it goes from 90 - 310 with 160 degrees rotation
	North,	//160
	NW,		//120
	WNW,
	West,	//80
	WSW,
	SW,		//40
	South	//0
};

void ConfigRightServo(enum Angles ang);

void ConfigLeftServo(enum Angles ang);

void ServoInit();


#endif /* SERVO_H_ */